var pageNo=1;
getOneAdmin2();

var ss=0;
function getOneAdmin2() {
	 if(pageNo==1 || pageNo==2 || ss!=0){
	$.ajax({
		url: urlcore + "/api/order/selectOrderForGoodsList3?current="+pageNo+"&orderType=4",
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
			ss=data.data.length;	
		$.each(data.data.list, function(y,n) {
			var lishidingdan='<div class="daike_lishi">'+
	'<h5>订单生成时间：'+n.gmtDatetime+'</h5>'+
	'<dl>';
			var s="";
			if(n.goodsList!=null){
				   lengths=n.goodsList.length;
				$.each(n.goodsList,function(m,q){
			   s=q.coverUrl;
			});
			}
	lishidingdan+='<dt>'+
			'<img onerror="errorImg(this)" src="'+s+'" />'+
		'</dt>'+
		'<dd>'+
			'<h6>共'+n.goodsNumber+'款，'+lengths+'件商品</h6>'+
			'<p>商品金额<span>&yen;'+n.payMoney+'</span>(运费金额&yen;'+n.freightMoney+')</p>'+
		'</dd>'+
	'</dl>'+
	'<div class="daike_lishi_footer clearfix">'+
/*		'<div class="fl">'+
			'<h6>'++'</h6>'+
			'<h6>15695869596</h6>'+
		'</div>'+*/
		'<div class="fr">'+
			'<a href="20.3.7dingdan_erweima.html?id='+n.id+'">查看二维码</a>'+
			/*'<em onclick="fashong(this)" class="jg_share">发送订单</em>'+*/
		'</div>'+
	'</div>'+
'</div>';
           $("#lishidingdan").append(lishidingdan);
				});
			}
		},
		error:function() {
			/* Act on the event */
			alert("error");
		}
	});	
	 	
	 }
}
